package com.yihu.cms.service;

import java.io.IOException;

import com.yihu.dataService.hessian.resource.ResourceMongoDBManager;
import com.yihu.web.bean.Attention;
import com.yihu.web.bean.Channel;
import com.yihu.web.bean.ChannelGoods;
import com.yihu.web.bean.ChannelGoodsList;
import com.yihu.web.bean.vo.ArtworkQuery;
import com.yihu.web.bean.vo.ChannelGoodsQuery;
import com.yihu.web.bean.vo.ChannelQuery;
import com.yihu.web.bean.vo.CollectQuery;
import com.yihu.web.bean.vo.Collection;
import com.yihu.web.bean.vo.StockVO;
import com.yihu.web.constats.ResponseVO;
import com.yihu.web.dataService.hessian.interfaceService.ArtworkHService;
/***
 * 调用yihus的艺术品查询
 * @author Aaron
 *
 */
public class ArtworkQueryService {

	ArtworkHService service =null;
	public ArtworkQueryService(){
		try {
			service= (ArtworkHService)ResourceMongoDBManager.getSingleton().getBeans("artworkQueryHSC");
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
	public Object getArtworkByCategory(ArtworkQuery query){
		return service.getArtWorkByCategory(query);
	}
	public Object getArtWorksByRelated(ArtworkQuery query){
		return service.getArtWorksByRelated(query);
	}
	
	
	public Object getCollectsByUserId(CollectQuery query){
		return service.getCollectsByUserId(query);
	}
	
	public Object addCollect(Collection collection){
		return service.collectArtwork(collection);
	}
	
	public Object deleteCollect(Collection collection){
		return service.deleteCollect(collection);
	}
	
	public Object getTeaTotal(ArtworkQuery aQuery){
		return service.getTeaTotal(aQuery);
	}
	
	public Object setTeaTotal(ArtworkQuery aQuery){
		return service.setTeaTotal(aQuery);
	}
	
	public Object updateStock(StockVO stock){
		return service.updateStock(stock);
	}
	/***
	 * 团购，秒杀，拍卖之类的用户提醒
	 * @return
	 */
	public Object addAttention(Attention a){
		return service.addAttention(a);
	}
	
	public Object getAttention(Attention a){
		return service.getAttention(a);
	}
	
	public Object getHomeData(ArtworkQuery query){
		return service.getHomeData(query);
	}
	
	public ResponseVO addChannel(Channel c){
		return service.addChannel(c);
	}

	public ResponseVO getChannelById(String id){
		return service.getChannelById(id);
	}
	public ResponseVO deleteChannelById(String id){
		return service.deleteChannelById(id);
	}
	public ResponseVO updateChannelById(Channel channel){
		return service.updateChannelById(channel);
	}
	public Object getChannelsByPage(ChannelQuery query){
		return service.getChannelsByPage(query);
	}
	
	public ResponseVO addChannelGoods(ChannelGoods goods){
		return service.addChannelGoods(goods);
	}
	public ResponseVO getChannelGoodsById(String id){
		return service.getChannelGoodsById(id);
	}
	public ResponseVO deleteChannelGoodsById(String id){
		return service.deleteChannelGoodsById(id);
	}
	public ResponseVO updateChannelGoodsById(ChannelGoods channel){
		return service.updateChannelGoodsById(channel);
	}
	public Object getChannelsGoodsByPage(ChannelGoodsQuery query){
		return service.getChannelsGoodsByPage(query);
	}
	public ResponseVO addChannelGoodsList(ChannelGoodsList goodsList){
		return service.addChannelGoodsList(goodsList);
	}
	
	
	
	
}
